﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="PersianCalendarControl.NavigationButton"
	d:DesignWidth="640" d:DesignHeight="480" Width="Auto" Height="Auto">
	<UserControl.Resources>
		<Style x:Key="NavigationButton" TargetType="Button">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid x:Name="LayoutRoot">
                		<VisualStateManager.VisualStateGroups>
                			<VisualStateGroup x:Name="CommonStates">
                				<VisualStateGroup.Transitions>
                					<VisualTransition GeneratedDuration="0:0:0.2"/>
                				</VisualStateGroup.Transitions>
                				<VisualState x:Name="Disabled">
                					<Storyboard>
                						<ColorAnimation Duration="0" To="#FFDADADA" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="path" />
                						<ColorAnimation Duration="0" To="#FF6E6E6E" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="path" />
                						<ColorAnimation Duration="0" To="#FF474747" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="path" />
                						<ColorAnimation Duration="0" To="DarkGray" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="path" />
                					</Storyboard>
                				</VisualState>
                				<VisualState x:Name="Normal"/>
                				<VisualState x:Name="MouseOver">
                					<Storyboard>
                						<ColorAnimation Duration="0" To="#FFFFD769" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="path" />
                						<ColorAnimation Duration="0" To="#FFB28200" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="path" />
                						<ColorAnimation Duration="0" To="#FFC28602" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="path" />
                						<ColorAnimation Duration="0" To="#FFF1C529" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="path" />
                						<ColorAnimation Duration="0" To="#FFE7DFDF" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="path" />
                						<ColorAnimation Duration="0" To="#FFEDE6E6" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="path" />
                						<ColorAnimation Duration="0" To="#FFC2C2C2" Storyboard.TargetProperty="(Shape.Stroke).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="path" />
                						<ColorAnimation Duration="0" To="#FFFFC92B" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)" Storyboard.TargetName="rectangle" d:IsOptimized="True"/>
                						<DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rectangle1" d:IsOptimized="True"/>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.HorizontalAlignment)" Storyboard.TargetName="path">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<HorizontalAlignment>Center</HorizontalAlignment>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.VerticalAlignment)" Storyboard.TargetName="path">
                							<DiscreteObjectKeyFrame KeyTime="0">
                								<DiscreteObjectKeyFrame.Value>
                									<VerticalAlignment>Center</VerticalAlignment>
                								</DiscreteObjectKeyFrame.Value>
                							</DiscreteObjectKeyFrame>
                						</ObjectAnimationUsingKeyFrames>
                						<DoubleAnimation Duration="0" To="0.922" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="path" d:IsOptimized="True"/>
                						<DoubleAnimation Duration="0" To="0.438" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="path" d:IsOptimized="True"/>
                						<ColorAnimation Duration="0" To="#FFFEFAD4" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="rectangle1" d:IsOptimized="True"/>
                						<ColorAnimation Duration="0" To="#FFFEFAA7" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="rectangle1" d:IsOptimized="True"/>
                					</Storyboard>
                				</VisualState>
                				<VisualState x:Name="Pressed"/>
                			</VisualStateGroup>
                			<VisualStateGroup x:Name="FocusStates">
                				<VisualStateGroup.Transitions>
                					<VisualTransition GeneratedDuration="0:0:0.2"/>
                				</VisualStateGroup.Transitions>
                				<VisualState x:Name="Unfocused"/>
                				<VisualState x:Name="Focused"/>
                			</VisualStateGroup>
                		</VisualStateManager.VisualStateGroups>
                		<Rectangle x:Name="rectangle" RadiusX="2" RadiusY="2" Stroke="#FF787878"/>
                		<Rectangle x:Name="rectangle1" RadiusX="1" Margin="1" RadiusY="1" Stroke="White" Opacity="0">
                			<Rectangle.Fill>
                				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                					<GradientStop Color="Black" Offset="0"/>
                					<GradientStop Color="White" Offset="1"/>
                				</LinearGradientBrush>
                			</Rectangle.Fill>
                		</Rectangle>
                    	<Path x:Name="path" Data="M15.487116,0.75694191 L1.831007,7.8464537 L15.467049,14.590996 z" Margin="6.412,3.085,7.113,3.64" Stretch="Fill" UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5">
                    		<Path.RenderTransform>
                    			<CompositeTransform/>
                    		</Path.RenderTransform>
                    		<Path.Stroke>
                    			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    				<GradientStop Color="#FF838383" Offset="0"/>
                    				<GradientStop Color="#FF818181" Offset="1"/>
                    				<GradientStop Color="#FFA39D9D" Offset="0.504"/>
                    			</LinearGradientBrush>
                    		</Path.Stroke>
                    		<Path.Fill>
                    			<RadialGradientBrush Center="0.632,0.169" GradientOrigin="0.632,0.169" RadiusX="1.363" RadiusY="0.774">
                    				<RadialGradientBrush.RelativeTransform>
                    					<CompositeTransform CenterY="0.332" CenterX="0.744" Rotation="-8.844"/>
                    				</RadialGradientBrush.RelativeTransform>
                    				<GradientStop Color="#FF002943" Offset="0.516"/>
                    				<GradientStop Color="#FF009CFF" Offset="0.872"/>
                    				<GradientStop Color="#FF029DFF" Offset="0.221"/>
                    				<GradientStop Color="#FF00426B" Offset="0.513"/>
                    			</RadialGradientBrush>
                    		</Path.Fill>
                    	</Path>
                	</Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
	</UserControl.Resources>

	<Button Content="Button" Style="{StaticResource NavigationButton}" Click="Button_Click"/>
</UserControl>